package com.attendance.chdingtask.dao;

import com.attendance.chdingtask.model.MdDetails;

import java.util.Date;
import java.util.List;

public interface MdDetailsDao  extends BaseJPA<MdDetails> {

    List<MdDetails> findAllByAreaIdAndCorpIdAndFlagAndRecognizeTimeBetween(Long areaId, String corpId, String flag, Date startDate,Date endDate);


    List<MdDetails> findAllByRecognizeTimeBeforeAndRecognizeTimeAfterAndAreaIdAndCorpIdAndFlag(Date startDate,Date endDate,Long areaId, String corpId, String flag);

    List<MdDetails> findAllByRecognizeTimeBeforeAndRecognizeTimeAfterAndDeviceIdAndCorpId(Date startDate,Date endDate,Long deviceId, String corpId);

    List<MdDetails> findAllByRecognizeTimeBeforeAndRecognizeTimeAfter(Date startDate,Date endDate);

    List<MdDetails> findAllByRecognizeTimeBeforeAndRecognizeTimeAfterAndDeviceId(Date startDate,Date endDate,Long deviceId);
}
